package edu.zut.cs.software.sms.staff.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.person.staff.domain.Staff;
import edu.zut.cs.software.person.staff.service.StaffManager;
import edu.zut.cs.software.teach.Base.web.spring.controller.GenericController;

@Controller
@RequestMapping("/Staff")
public class StaffController extends GenericController<Staff, Long, StaffManager> {

	StaffManager staffmanager;

	@Autowired
	public void setStaffmanager(StaffManager staffmanager) {
		this.staffmanager = staffmanager;
		this.manager = staffmanager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/Staff/index";
		return result;
	}
}
